package annotation04;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE,ElementType.METHOD})
   // 注解用在类和方法上
@Retention(RetentionPolicy.SOURCE)
public @interface MyAnnotation {
    String name();
    int num() default 0;
    String [] colors() default {"white","black"};

}
